import service from '../utils/request'

//根据分页、模糊、排序查询
export const getChatsBySearch = (params:any) => {
    return service({
        url:'/api/chat//search',
        method:'get',
        params
    })
}
//根据id删除
export const deleteChatById = (params:any) => {
    return service({
        url:'/api/chat/delete/one',
        method:'post',
        params
    })
}
//批量删除
export const deleteChatAmount = (params:any) => {
    return service({
        url:'/api/chat/delete/amount',
        method:'post',
        params
    })
}
//根据id查看详情
export const getChatDetailById = (params:any) => {
    return service({
        url:'/api/chat/detail',
        method:'get',
        params
    })
}